package com.hamll.es.service;


import com.hamll.es.pojo.RequestParams;
import com.hmall.common.dto.PageResult;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface ISearchService {

    /**
     * 自动补全功能
     * @param key
     * @return
     */
    public List<String> suggestion(String key) throws IOException;

    /**
     * 过滤聚合
     */
    public Map<String,List<String>> filters(RequestParams params) throws IOException;

    /**
     * 基本的搜索查询
     * @param params
     * @return
     */
    public PageResult list(RequestParams params) throws IOException;

}
